

/**************
Notes
1. For Table 1 and Figure 1, we use the full currency sample because we are trying to establish stylized facts
2. For the rest, we are trying to give info on regressions so use regression sample, which is smaller because of missing phi
3. this needs to be run after the regression because we use the output from regs to do the sumstats
**********************************************************************************************************/

/*

do Table1.do
*stats for table 1 and also others reported in the text and notes
*trade shares by currency category, also differentiated good split
*also recalculates table 1 without US
*also overall share of differentiated goods (see log file)
*trade to gdp ratio
*and peg shares saved in descriptive_stats.xls


do "Figure1.do"
*data for dominant currency figure of plot dollar share on euro share for imports and exports
*also Figure A1 only for differentiated goods.


do "Figure2.do
*bar graph for lcp/dcp/pcp for exports by firmsize

do "FigureA2.do"
*bar gaph as figure2 but for imports

do TableA1
*firm-size distribution

do TableA2_decomp
*this regresses a dummy=1 if noneuro currency on various fixed effects to get variance decomp
*variance decomposition i.e. regresses currency choice on various fe to show firm-level dimension is important
*baseline is weighted exports
*robustness with unweighted exports
*robustness for imports for referee

*/

do TableA3.do

do TableA6_sumstats.do

do TableB3.do

*Additional files that generate numbers referenced in text/notes but don't appear as table or graph
*******************************
do "descriptive statistics.do"
*checks time persistence of euro
*share of euro that is 0/1 within firm-destination
*Belgium's share of ex-Europe trade


exit

************************************************
*Additional files
****************************

do "check missing currency data.do"
*checks proportion of imports and exports in xeu for which we have currency data.
*puts together overlapping data that is used in Table1


do "descriptive peg.do"
*calculates share cumulative share of exports as function of rmse to see if 0.05 cutoff is reasonable
*plot of share of peg value against share of usd value for HS8 diff goods










